# Character scope. Mirrors the ruler's capital weather on the character sheet.
# Mechanical weather effects remain on provinces and are not duplicated here.

cr_clear_character_weather_effect = {
	remove_character_modifier = cr_character_weather_atlantic_rains
	remove_character_modifier = cr_character_weather_atlantic_storms
	remove_character_modifier = cr_character_weather_atlantic_mists
	remove_character_modifier = cr_character_weather_atlantic_bright_season
	remove_character_modifier = cr_character_weather_scottish_rains
	remove_character_modifier = cr_character_weather_scottish_gales
	remove_character_modifier = cr_character_weather_scottish_cold
	remove_character_modifier = cr_character_weather_scottish_clear_season
	remove_character_modifier = cr_character_weather_iceland_hard_winter
	remove_character_modifier = cr_character_weather_iceland_gales
	remove_character_modifier = cr_character_weather_iceland_thaw
	remove_character_modifier = cr_character_weather_iceland_clear_season
	remove_character_modifier = cr_character_weather_northern_maritime_rains
	remove_character_modifier = cr_character_weather_northern_maritime_gales
	remove_character_modifier = cr_character_weather_northern_maritime_cold
	remove_character_modifier = cr_character_weather_northern_maritime_bright_season
	remove_character_modifier = cr_character_weather_boreal_snow
	remove_character_modifier = cr_character_weather_boreal_rains
	remove_character_modifier = cr_character_weather_boreal_thaw
	remove_character_modifier = cr_character_weather_boreal_clear_season
	remove_character_modifier = cr_character_weather_temperate_rains
	remove_character_modifier = cr_character_weather_temperate_storms
	remove_character_modifier = cr_character_weather_temperate_cold_snap
	remove_character_modifier = cr_character_weather_temperate_fair_season
	remove_character_modifier = cr_character_weather_mediterranean_summer_heat
	remove_character_modifier = cr_character_weather_mediterranean_winter_rains
	remove_character_modifier = cr_character_weather_mediterranean_storms
	remove_character_modifier = cr_character_weather_mediterranean_fair_season
	remove_character_modifier = cr_character_weather_iberian_dry_heat
	remove_character_modifier = cr_character_weather_iberian_rains
	remove_character_modifier = cr_character_weather_iberian_drought
	remove_character_modifier = cr_character_weather_iberian_good_season
	remove_character_modifier = cr_character_weather_highland_snow
	remove_character_modifier = cr_character_weather_highland_storms
	remove_character_modifier = cr_character_weather_highland_dry_season
	remove_character_modifier = cr_character_weather_highland_clear_season
	remove_character_modifier = cr_character_weather_desert_heat
	remove_character_modifier = cr_character_weather_desert_sandstorms
	remove_character_modifier = cr_character_weather_desert_rains
	remove_character_modifier = cr_character_weather_desert_clear_season
	remove_character_modifier = cr_character_weather_sahel_wet_season
	remove_character_modifier = cr_character_weather_sahel_dry_season
	remove_character_modifier = cr_character_weather_sahel_drought
	remove_character_modifier = cr_character_weather_sahel_good_season
	remove_character_modifier = cr_character_weather_steppe_winds
	remove_character_modifier = cr_character_weather_steppe_snow
	remove_character_modifier = cr_character_weather_steppe_drought
	remove_character_modifier = cr_character_weather_steppe_grazing_season
	remove_character_modifier = cr_character_weather_plateau_dry_heat
	remove_character_modifier = cr_character_weather_plateau_winter
	remove_character_modifier = cr_character_weather_plateau_spring
	remove_character_modifier = cr_character_weather_plateau_dust
	remove_character_modifier = cr_character_weather_indian_monsoon
	remove_character_modifier = cr_character_weather_indian_floods
	remove_character_modifier = cr_character_weather_indian_dry_heat
	remove_character_modifier = cr_character_weather_indian_good_harvest
	remove_character_modifier = cr_character_weather_himalayan_snow
	remove_character_modifier = cr_character_weather_himalayan_monsoon
	remove_character_modifier = cr_character_weather_himalayan_clear_season
	remove_character_modifier = cr_character_weather_himalayan_cold
	remove_character_modifier = cr_character_weather_east_asian_monsoon
	remove_character_modifier = cr_character_weather_east_asian_storms
	remove_character_modifier = cr_character_weather_east_asian_winter
	remove_character_modifier = cr_character_weather_east_asian_clear_season
}

cr_refresh_character_weather_effect = {
	cr_clear_character_weather_effect = yes
	if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_atlantic_rains } }
		add_character_modifier = { name = cr_character_weather_atlantic_rains duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_atlantic_storms } }
		add_character_modifier = { name = cr_character_weather_atlantic_storms duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_atlantic_mists } }
		add_character_modifier = { name = cr_character_weather_atlantic_mists duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_atlantic_bright_season } }
		add_character_modifier = { name = cr_character_weather_atlantic_bright_season duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_scottish_rains } }
		add_character_modifier = { name = cr_character_weather_scottish_rains duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_scottish_gales } }
		add_character_modifier = { name = cr_character_weather_scottish_gales duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_scottish_cold } }
		add_character_modifier = { name = cr_character_weather_scottish_cold duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_scottish_clear_season } }
		add_character_modifier = { name = cr_character_weather_scottish_clear_season duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_iceland_hard_winter } }
		add_character_modifier = { name = cr_character_weather_iceland_hard_winter duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_iceland_gales } }
		add_character_modifier = { name = cr_character_weather_iceland_gales duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_iceland_thaw } }
		add_character_modifier = { name = cr_character_weather_iceland_thaw duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_iceland_clear_season } }
		add_character_modifier = { name = cr_character_weather_iceland_clear_season duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_northern_maritime_rains } }
		add_character_modifier = { name = cr_character_weather_northern_maritime_rains duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_northern_maritime_gales } }
		add_character_modifier = { name = cr_character_weather_northern_maritime_gales duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_northern_maritime_cold } }
		add_character_modifier = { name = cr_character_weather_northern_maritime_cold duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_northern_maritime_bright_season } }
		add_character_modifier = { name = cr_character_weather_northern_maritime_bright_season duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_boreal_snow } }
		add_character_modifier = { name = cr_character_weather_boreal_snow duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_boreal_rains } }
		add_character_modifier = { name = cr_character_weather_boreal_rains duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_boreal_thaw } }
		add_character_modifier = { name = cr_character_weather_boreal_thaw duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_boreal_clear_season } }
		add_character_modifier = { name = cr_character_weather_boreal_clear_season duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_temperate_rains } }
		add_character_modifier = { name = cr_character_weather_temperate_rains duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_temperate_storms } }
		add_character_modifier = { name = cr_character_weather_temperate_storms duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_temperate_cold_snap } }
		add_character_modifier = { name = cr_character_weather_temperate_cold_snap duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_temperate_fair_season } }
		add_character_modifier = { name = cr_character_weather_temperate_fair_season duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_mediterranean_summer_heat } }
		add_character_modifier = { name = cr_character_weather_mediterranean_summer_heat duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_mediterranean_winter_rains } }
		add_character_modifier = { name = cr_character_weather_mediterranean_winter_rains duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_mediterranean_storms } }
		add_character_modifier = { name = cr_character_weather_mediterranean_storms duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_mediterranean_fair_season } }
		add_character_modifier = { name = cr_character_weather_mediterranean_fair_season duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_iberian_dry_heat } }
		add_character_modifier = { name = cr_character_weather_iberian_dry_heat duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_iberian_rains } }
		add_character_modifier = { name = cr_character_weather_iberian_rains duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_iberian_drought } }
		add_character_modifier = { name = cr_character_weather_iberian_drought duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_iberian_good_season } }
		add_character_modifier = { name = cr_character_weather_iberian_good_season duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_highland_snow } }
		add_character_modifier = { name = cr_character_weather_highland_snow duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_highland_storms } }
		add_character_modifier = { name = cr_character_weather_highland_storms duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_highland_dry_season } }
		add_character_modifier = { name = cr_character_weather_highland_dry_season duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_highland_clear_season } }
		add_character_modifier = { name = cr_character_weather_highland_clear_season duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_desert_heat } }
		add_character_modifier = { name = cr_character_weather_desert_heat duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_desert_sandstorms } }
		add_character_modifier = { name = cr_character_weather_desert_sandstorms duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_desert_rains } }
		add_character_modifier = { name = cr_character_weather_desert_rains duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_desert_clear_season } }
		add_character_modifier = { name = cr_character_weather_desert_clear_season duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_sahel_wet_season } }
		add_character_modifier = { name = cr_character_weather_sahel_wet_season duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_sahel_dry_season } }
		add_character_modifier = { name = cr_character_weather_sahel_dry_season duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_sahel_drought } }
		add_character_modifier = { name = cr_character_weather_sahel_drought duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_sahel_good_season } }
		add_character_modifier = { name = cr_character_weather_sahel_good_season duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_steppe_winds } }
		add_character_modifier = { name = cr_character_weather_steppe_winds duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_steppe_snow } }
		add_character_modifier = { name = cr_character_weather_steppe_snow duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_steppe_drought } }
		add_character_modifier = { name = cr_character_weather_steppe_drought duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_steppe_grazing_season } }
		add_character_modifier = { name = cr_character_weather_steppe_grazing_season duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_plateau_dry_heat } }
		add_character_modifier = { name = cr_character_weather_plateau_dry_heat duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_plateau_winter } }
		add_character_modifier = { name = cr_character_weather_plateau_winter duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_plateau_spring } }
		add_character_modifier = { name = cr_character_weather_plateau_spring duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_plateau_dust } }
		add_character_modifier = { name = cr_character_weather_plateau_dust duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_indian_monsoon } }
		add_character_modifier = { name = cr_character_weather_indian_monsoon duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_indian_floods } }
		add_character_modifier = { name = cr_character_weather_indian_floods duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_indian_dry_heat } }
		add_character_modifier = { name = cr_character_weather_indian_dry_heat duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_indian_good_harvest } }
		add_character_modifier = { name = cr_character_weather_indian_good_harvest duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_himalayan_snow } }
		add_character_modifier = { name = cr_character_weather_himalayan_snow duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_himalayan_monsoon } }
		add_character_modifier = { name = cr_character_weather_himalayan_monsoon duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_himalayan_clear_season } }
		add_character_modifier = { name = cr_character_weather_himalayan_clear_season duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_himalayan_cold } }
		add_character_modifier = { name = cr_character_weather_himalayan_cold duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_east_asian_monsoon } }
		add_character_modifier = { name = cr_character_weather_east_asian_monsoon duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_east_asian_storms } }
		add_character_modifier = { name = cr_character_weather_east_asian_storms duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_east_asian_winter } }
		add_character_modifier = { name = cr_character_weather_east_asian_winter duration = 93 }
	}
	else_if = {
		limit = { capital_scope = { has_province_modifier = cr_weather_east_asian_clear_season } }
		add_character_modifier = { name = cr_character_weather_east_asian_clear_season duration = 93 }
	}
}

